﻿using Leo.Common.MQTT.Enums;

namespace Leo.Common.MQTT
{
    /// <summary>
    /// MQTT 配置类
    /// </summary>
    public class MQTTConfig
    {
        /// <summary>
        /// 主机地址
        /// </summary>
        internal string Host { get; set; }

        /// <summary>
        /// 端口 默认：1883
        /// </summary>
        internal int Port { get; set; } = 1883;

        /// <summary>
        /// 用户名
        /// </summary>
        internal string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        internal string Password { get; set; }

        /// <summary>
        /// MQTT版本
        /// </summary>
        public MqttVersion MqttVersion { get; set; }

        /// <summary>
        /// 客户端id
        /// </summary>
        public string ClientId { get; set; }
    }
}
